<!DOCTYPE html>
<html lang="en">

<head>
    <title>My BCIT Project</title>
    <meta name="comp2800 template" content="My 2800 App">

    <!------------------------>
    <!-- Required meta tags -->
    <!------------------------>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!------------------------------------------>
    <!-- Bootstrap Library CSS JS CDN go here -->
    <!------------------------------------------>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
        crossorigin="anonymous"></script>

    <!-------------------------------------------------------->
    <!-- Firebase 8 Library related CSS, JS, JQuery go here -->
    <!-------------------------------------------------------->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>

    <!-------------------------------------------->
    <!-- Other libraries and styles of your own -->
    <!-------------------------------------------->
    <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
    <!-- <link rel="stylesheet" href="./styles/style.css"> -->

    <style>
        .main {
            margin-top: 20px;
        }

        #history-list {
            max-height: 200px;
            overflow-y: auto;
        }
    </style>

</head>

<body>
    <!------------------------------>
    <!-- Your HTML Layout go here -->
    <!------------------------------>

    <!-- our own navbar goes here -->
    <nav id="navbarPlaceholder"></nav>

    <!-- the body of your page goes here -->

    <main class="container">

        <div class="p-4 p-md-5 mb-4 rounded text-body-emphasis bg-body-secondary main">
            <div class="col-lg-6 px-0">
                <h1 class="display-5 fst-italic">Welcome to the history page</h1>
                <p class="lead my-3">This is the historical record of the study check-in</p>
                <ul id="history-list" class="list-group"></ul>
            </div>
        </div>

        <div class="d-grid gap-2 d-sm-flex justify-content-sm-center mb-5">
            <button onclick="window.location.href='index.html'" type="button"
                class="btn btn-warning btn-lg px-4 me-sm-3">Back</button>
            <button onclick="window.location.href='aboutus.html'" type="button"
                class="btn btn-outline-secondary btn-lg px-4">aboutus</button>
        </div>

        <!-- 用于动态插入历史记录的容器 -->
        <div id="historyContainer" class="row mb-2"></div>

    </main>



    <!-- stuff -->

    <!-- our own footer goes here-->
    <nav id="footerPlaceholder"></nav>

    <!---------------------------------------------->
    <!-- Your own JavaScript functions go here    -->
    <!---------------------------------------------->
    <script src="./scripts/skeleton.js"></script>
    <script src="./scripts/script.js"></script>
    <script src="./scripts/history.js"></script>

</body>

</html>